﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="UI.Helper" %>

<tr>
<td height="38px" align="center" valign="top" background="<%= Url.Content("~/Images/bg-banner-menu.jpg")%>"><table width="952px" height="38px" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top"><table width="100%" cellspacing="0" cellpadding="0">
        <tr>
        <td width="7%">&nbsp;</td>
        <td width="93%" align="left" valign="top"><table width="605px" cellspacing="0" cellpadding="0">
            <tr>
            <% var controllerName = ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString();
               var actionName = ViewContext.Controller.ValueProvider.GetValue("action").RawValue.ToString();
            %>
            <!-- trang chu -->
            <td width="119px" align="center" valign="top"><table width="119px"; height="32px" cellspacing="0" cellpadding="0">
                    <tr>
                        <% if (controllerName.ToLower() == "home" && actionName.ToLower() == "index")
                           { %>
                            <td background="<%: Url.Content("~/Images/bg-menu-over.png") %>" class="Menu-black">Trang chủ</td>
                        <% }
                           else
                           { %>
                            <td width="119px" class="Menu">
                                <%: Html.ActionLink("Trang chủ", "Index", new { controller = "Home" }, new { @class = "Menu" })%>
                            </td>
                            <%} %>
                    </tr>
                </table>
            </td>
            <td width="2px"><img src="<%= Url.Content("~/Images/line-red.jpg")%>" width="2" height="37" /></td>
            <!-- Gioi thieu -->
            <td width="119px" align="center" valign="top"><table width="119px"; height="32px" cellspacing="0" cellpadding="0">
                    <tr>
                        <% if (controllerName.ToLower() == "home" && actionName.ToLower() == "about")
                           { %>
                            <td background="<%: Url.Content("~/Images/bg-menu-over.png") %>" class="Menu-black">Giới thiệu</td>
                        <% }
                           else
                           { %>
                            <td width="119px" class="Menu">
                                <%: Html.ActionLink("Giới thiệu", "About", new { controller = "Home" }, new { @class = "Menu" })%>
                            </td>
                            <%} %>
                    </tr>
                </table>
            </td>
            <td width="2px"><img src="<%= Url.Content("~/Images/line-red.jpg")%>" width="2" height="37" /></td>
            <!-- San pham -->
            <td width="119px" align="center" valign="top"><table width="119px"; height="32px" cellspacing="0" cellpadding="0">
                    <tr>
                        <% if (controllerName.ToLower() == "product")
                           { %>
                            <td background="<%: Url.Content("~/Images/bg-menu-over.png") %>" class="Menu-black">Sản phẩm</td>
                        <% }
                           else
                           { %>
                            <td width="119px" class="Menu">
                                <%: Html.ActionLink("Sản phẩm", "List", new { controller = "Product" }, new { @class = "Menu" })%>
                            </td>
                            <%} %>
                    </tr>
                </table>
            </td>
            <td width="2px"><img src="<%= Url.Content("~/Images/line-red.jpg")%>" width="2" height="37" /></td>
            <!-- Bao gia -->
            <td width="119px" align="center" valign="top"><table width="119px"; height="32px" cellspacing="0" cellpadding="0">
                    <tr>
                        <% if (controllerName.ToLower() == "home" && actionName.ToLower() == "product")
                           { %>
                            <td background="<%: Url.Content("~/Images/bg-menu-over.png") %>" class="Menu-black">Báo giá</td>
                        <% }
                           else
                           { %>
                            <td width="119px" class="Menu">
                                <%: Html.ActionLink("Báo giá", "Product", new { controller = "Home" }, new { @class = "Menu" })%>
                            </td>
                            <%} %>
                    </tr>
                </table>
            </td>
            <td width="2px"><img src="<%= Url.Content("~/Images/line-red.jpg")%>" width="2" height="37" /></td>
            <td width="119px" align="center" valign="top"><table width="119px"; height="32px" cellspacing="0" cellpadding="0">
                    <tr>
                        <% if (controllerName.ToLower() == "home" && actionName.ToLower() == "contact")
                           { %>
                            <td background="<%: Url.Content("~/Images/bg-menu-over.png") %>" class="Menu-black">Liên hệ</td>
                        <% }
                           else
                           { %>
                            <td width="119px" class="Menu">
                                <%: Html.ActionLink("Liên hệ", "Contact", new { controller = "Home" }, new { @class = "Menu" })%>
                            </td>
                            <%} %>
                    </tr>
                </table>
            </td>
            <td width="2px"><img src="<%= Url.Content("~/Images/line-red.jpg")%>" width="2" height="37" /></td>
            </tr>
        </table></td>
        </tr>
    </table></td>
    </tr>
</table></td>
</tr>